﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PNGInfo.Framework
{
    public class PNGTagsCache
    {
        public List<PNGTag> Tags;

        public void Populate(string root, int maxDegreeOfParallelism = 1)
        {
            Parallel.ForEach(Tags, new ParallelOptions() {MaxDegreeOfParallelism = maxDegreeOfParallelism }, (t) => 
            {
                t.Populate(root);
            });
        }
    }
}
